import request from '../utils/request.js';

export function ChatHistory_API(tid) {
    return request({
        url: `/chat/history?receiverId=${tid}`,
        method: 'GET',
        headers: {
            'Authorization': 'Bearer' + localStorage.getItem('token')
        }
    })
}

export function GroupChatHistory_API(gid) {
    return request({
        url: `/chat/group/history?groupId=${gid}`,
        method: 'GET',
        headers: {
            'Authorization': 'Bearer' + localStorage.getItem('token')
        }
    })
}